package Controls
{
	import Input.GameInput;
	
	import Objects.GameBitmap;
	import Objects.GameObject;
	import Objects.GameSprite;
	
	public class ToolTip extends GameSprite
	{
		public var go:GameObject;
		public var back:GameBitmap;
		public function ToolTip()
		{
			super();
			checkMouse=false;
			intelligent=true;
			
			back=new GameBitmap();
			addChild(back);
		}
		override protected function $update():void
		{
			if(!go.mOver)
			{
				go.toolTip=null;
				remove();
			}
		}
		public final function setup(toolTipData:Object):void
		{
			_setup(toolTipData);
		}
		public function _setup(toolTipData:Object):void
		{
			
		}
	}
}